//-----------------------------------------------------------------------
// <copyright file="a_DomDocumentService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_DomDocumentService
    {
        #region a_DomDocument

        public static void Createa_DomDocument(a_DomDocument a_DomDocument)
        {            
            try
            {
                a_DomDocumentDAO a_DomDocumentDAO = new a_DomDocumentDAO();
                a_DomDocumentDAO.Createa_DomDocument(a_DomDocument);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_DomDocument(a_DomDocument a_DomDocument)
        {            
            try
            {
                a_DomDocumentDAO a_DomDocumentDAO = new a_DomDocumentDAO();
                a_DomDocumentDAO.Updatea_DomDocument(a_DomDocument);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_DomDocument(int domDocID)
        {            
            try
            {
                a_DomDocumentDAO a_DomDocumentDAO = new a_DomDocumentDAO();
                a_DomDocumentDAO.Deletea_DomDocument(domDocID);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_DomDocument Geta_DomDocument(int domDocID)
        {            
            try
            {
                a_DomDocumentDAO a_DomDocumentDAO = new a_DomDocumentDAO();
                return a_DomDocumentDAO.Geta_DomDocument(domDocID);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_DomDocumentCollection Geta_DomDocumentList(a_DomDocumentColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_DomDocumentDAO a_DomDocumentDAO = new a_DomDocumentDAO();
                return a_DomDocumentDAO.Geta_DomDocumentList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_DomDocumentCollection Geta_DomDocumentList(a_DomDocumentColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_DomDocumentDAO a_DomDocumentDAO = new a_DomDocumentDAO();
                return a_DomDocumentDAO.Geta_DomDocumentList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}